﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace RoundupReadyPlusWPF.Pages
{
    /// <summary>
    /// Interaction logic for PageUsa.xaml
    /// </summary>
    public partial class PageUsa : UserControl
    {
        public PageUsa()
        {
            InitializeComponent();
        }

        private void OnPathMouseEnter(object sender, System.Windows.Input.MouseEventArgs e)
        {

            Path tnge = sender as Path;
            SolidColorBrush brush = new SolidColorBrush();
            brush.Color = Colors.Black;

            tnge.Fill = brush;

            //if (tnge == null) { return; }
            //this.mouseEnter.Stop();
            //Storyboard.SetTarget(this.mouseEnter, tnge);
            //this.mouseEnter.Begin();
            //txtState.Text = tnge.Name;

        }

        private void OnPathMouseExit(object sender, System.Windows.Input.MouseEventArgs e)
        {
            Path tnge = sender as Path;
            SolidColorBrush brush = new SolidColorBrush();
            brush.Color = Colors.Transparent;

            tnge.Fill = brush;
            //Path tnge = sender as Path;
            //if (tnge == null) { return; }
            //this.mouseEnter.Stop();
            //Storyboard.SetTarget(this.mouseEnter, tnge);

            // TODO: Add event handler implementation here.
        }

    }
}
